package com.googlecode.androidkurskoblenz.ledcube;

public interface CubeInterface
{
	/*
	 * called after the connection to the cube has been established
	 */
	void onCubeConnect(CubeConnection cubeConnection);
	
	/*
	 * called after the connection to the cube has been dropped (either by calling stop or when the connection was lost)
	 */
	void onCubeDisconnect(CubeConnection cubeConnection);
	
	/*
	 * called after the connection to the cube was lost
	 */
	void onCubeError(CubeConnection cubeConnection);
	
	/*
	 * called after the data has been received from the cube
	 * the initial handshake, which also reads the dimensions of the cube, does not trigger this callback
	 */
	void onCubeReceive(CubeConnection cubeConnection, String data);
}
